AM_CPPFLAGS += \
    -I$(top_srcdir)/src/ccutil \
    -I$(top_srcdir)/src/ccstruct \
    -I$(top_srcdir)/src/arch \
    -I$(top_srcdir)/src/lstm \
    -I$(top_srcdir)/src/viewer \
    -I$(top_srcdir)/src/classify \
    -I$(top_srcdir)/src/dict \
    -I$(top_srcdir)/src/wordrec \
    -I$(top_srcdir)/src/cutil \
    -I$(top_srcdir)/src/textord \
    -I$(top_srcdir)/src/opencl

AM_CPPFLAGS += $(OPENCL_CPPFLAGS)
AM_CPPFLAGS += $(OPENMP_CXXFLAGS)

if VISIBILITY
AM_CPPFLAGS += -DTESS_EXPORTS \
    -fvisibility=hidden -fvisibility-inlines-hidden
endif

pkginclude_HEADERS = \
    thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h

noinst_HEADERS = \
    control.h docqual.h equationdetect.h fixspace.h mutableiterator.h \
    output.h paragraphs.h paragraphs_internal.h osdetect.h paramsd.h pgedit.h \
    reject.h tessedit.h tesseractclass.h tessvars.h werdit.h

noinst_LTLIBRARIES = libtesseract_main.la

libtesseract_main_la_SOURCES = \
    adaptions.cpp applybox.cpp control.cpp  \
    docqual.cpp equationdetect.cpp fixspace.cpp fixxht.cpp \
    linerec.cpp ltrresultiterator.cpp \
    osdetect.cpp output.cpp pageiterator.cpp pagesegmain.cpp \
    pagewalk.cpp par_control.cpp paragraphs.cpp paramsd.cpp pgedit.cpp recogtraining.cpp \
    reject.cpp resultiterator.cpp superscript.cpp \
    tessbox.cpp tessedit.cpp tesseractclass.cpp tessvars.cpp \
    tfacepp.cpp thresholder.cpp \
    werdit.cpp
